﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxControlToolkit.ModalPopupExtender window = new AjaxControlToolkit.ModalPopupExtender();
        window.ID = "window";
        window.PopupControlID = "ModalPanel";
        window.TargetControlID = "Show";
        window.DropShadow = true;
        window.CancelControlID = "cancel";
        this.Panel1.Controls.Add(window);
    }
}